package piwan;

/** Utility class that wraps 4 double values for the components of a colour. */
public final class Colour {
	public Colour(double rr, double gg, double bb) {
		this(rr,gg,bb,1.0);
	}
	
	public Colour(double rr, double gg, double bb, double aa) {
		r=rr;
		g=gg;
		b=bb;
		a=aa;
	}
	
	public Colour clone() { return new Colour(r,g,b,a); }
	public void set(double rr,double gg, double bb, double aa){ r=rr;g=gg;b=bb;a=aa; }
	public void set(double rr,double gg, double bb) { set(rr,gg,bb,1.0); }
	public void set( Colour c ) { set(c.r,c.g,c.b,c.a); }
	
	public double r,g,b,a;
}
